package com.xianguo.app1;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;

public class Main extends Activity implements OnClickListener{
    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);
        Button btnToDateAct = (Button)findViewById(R.id.btnToDateAct);
        btnToDateAct.setOnClickListener(this);
        Button btnToWebViewer = (Button)findViewById(R.id.btnToWebViewer);
        btnToDateAct.setOnClickListener(this);
        btnToWebViewer.setOnClickListener(this);
    }

	@Override
	public void onClick(View v) {
		switch(v.getId()){
		case R.id.btnToDateAct:
			Intent dateAct = new Intent(this,DateAct.class);
			startActivity(dateAct);
			break;
		case R.id.btnToWebViewer:
			Intent webViewer = new Intent(this,WebViewer.class);
			startActivity(webViewer);
			break;
		}
	}
	
}